package com.qf.service.impl;

import com.qf.entity.ProductSku;
import com.qf.mapper.ProductSkuMapper;
import com.qf.service.ProductSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ProductSkuServicelmpl implements ProductSkuService {


    @Autowired
    private ProductSkuMapper skuMapper;
    @Override
    public List<ProductSku> skufindAll (ProductSku productSku) {
        List<ProductSku> list =skuMapper.skufindAll();


        return list;
    }

    @Override
    public List<ProductSku> skuFuzzy (ProductSku productSku) {
        //模糊查询
        return skuMapper.skuFuzzy(productSku);
    }

    @Override
    public boolean GoodsSku (ProductSku submitData) {

        return  skuMapper.GoodsSku(submitData);
    }

    @Override
    public boolean ProductGoodsSku (ProductSku formData) {
        return skuMapper.ProductGoodsSku(formData);
    }

    @Override
    public boolean handleDelete (Integer productSku) {//根据id删除
        return skuMapper.handleDelete(productSku);
    }
}
